<html>
    <head>
        <meta charset="UTF-8"></meta>
        <title>工作台</title>
        <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width"></meta>
        <link href="http://117.169.48.109:8089/layui/css/layui.css" rel="stylesheet"></link>
        <link rel="stylesheet" href="http://117.169.48.109:8089/css/basestation.css"></link>
        <link rel="stylesheet" href="http://117.169.48.109:8089/css/main.css"></link>
        <link id="layuicss-laydate" rel="stylesheet" href="http://117.169.48.109:8089/layui/css/modules/laydate/default/laydate.css?v=5.0.9" media="all"></link>
        <link id="layuicss-layer" rel="stylesheet" href="http://117.169.48.109:8089/layui/css/modules/layer/default/layer.css?v=3.1.1" media="all"></link>
        <link id="layuicss-skincodecss" rel="stylesheet" href="http://117.169.48.109:8089/layui/css/modules/code.css" media="all"></link>
    </head>
    <body>
        <section class="nav">
            <div class="jqr clearfix">
                <a href="###">
                    <img src="http://117.169.48.109:8089/image/jqr.gif" class="jqr-img"></img>
                    <div class="jqr-hello">
                        <p style="font-size:11px;line-height:37px;" id="loginname">,您好</p>
                        <p style="margin-top:-11px;">欢迎进入掌上学工</p>
                    </div>
                </a>
                <div class="fr">
                    <!--<span id="dxmb"><img src="image/mubiao.png" /> <a style="color:white;" id="dxmbtext">大学目标</a></span> &nbsp;&nbsp;-->
                    <span id="rwzx" style="position:relative;">
                        <img src="http://117.169.48.109:8089/image/renwu.png"></img>
                        <a style="color:white;" id="rwzxtext">任务中心</a>
                    </span>
                </div>
                <!--<a href="/weixinYX/ashx/Phone_WXYX.ashx?type=CancelWeixin" style="float:right;color:#fff;line-height:30px;margin-top:15px;"><img src="image/zhuxiao.png"> 注销</a>-->
            </div>
            <div id="workstation">
                <div class="nav1 clearfix" id="divMenuXG">
                    <p class="nav-title">事务中心</p>
                    <div class="carousel-warp">
                        <div class="layui-carousel" id="carouselMain" lay-anim="" lay-indicator="inside" lay-arrow="none" style="width: 100%; height: 160px;">
                            <div carousel-item="">
                                <div class="layui-this">
                                    <a href="ZHCP/XGFW_index.html?PDLXID=1&PDLXMC=%u8BF7%u9500%u5047%u7533%u8BF7&v=2">
                                        <img width="36" height="36" src="http://117.169.48.109:8089/images/XGFW.png"></img>
                                        <p>请销假申请</p>
                                    </a>
                                    <a href="XGFW_index.html?PDLXID=2&PDLXMC=%u5B66%u751F%u8F6C%u4E13%u4E1A%u8868%u5355&v=2">
                                        <img width="36" height="36" src="http://117.169.48.109:8089/images/XGFW.png"></img>
                                        <p>学生转专业表单</p>
                                    </a>
                                    <a href="XGFW_index.html?PDLXID=3&PDLXMC=%u5B66%u751F%u4F11%u5B66%u5BA1%u6279%u8868%u5355&v=2">
                                        <img width="36" height="36" src="http://117.169.48.109:8089/images/XGFW.png"></img>
                                        <p>学生休学审批表单</p>
                                    </a>
                                    <a href="XGFW_index.html?PDLXID=4&PDLXMC=%u5B66%u751F%u9000%u5B66%u5BA1%u6279%u8868%u5355&v=2">
                                        <img width="36" height="36" src="http://117.169.48.109:8089/images/XGFW.png"></img>
                                        <p>学生退学审批表单</p>
                                    </a>
                                    <a href="XGFW_index.html?PDLXID=5&PDLXMC=%u5B66%u751F%u590D%u5B66%u5BA1%u6279%u8868&v=2">
                                        <img width="36" height="36" src="http://117.169.48.109:8089/images/XGFW.png"></img>
                                        <p>学生复学审批表</p>
                                    </a>
                                    <a href="XGFW_index.html?PDLXID=6&PDLXMC=%u5B66%u751F%u4FDD%u7559%u5B66%u7C4D%u5BA1%u6838%u8868%u5355&v=2">
                                        <img width="36" height="36" src="http://117.169.48.109:8089/images/XGFW.png"></img>
                                        <p>学生保留学籍审核表单</p>
                                    </a>
                                </div>
                                <div class="">
                                    <a href="XGFW_index.html?PDLXID=7&PDLXMC=%u5B9E%u4E60%u5B66%u751F%u4F11%u5B66%u5BA1%u6279%u8868%u5355&v=2">
                                        <img width="36" height="36" src="http://117.169.48.109:8089/images/XGFW.png"></img>
                                        <p>实习学生休学审批表单</p>
                                    </a>
                                    <a href="XGFW_index.html?PDLXID=8&PDLXMC=%u5B9E%u4E60%u751F%u9000%u5B66%u5BA1%u6279%u8868%u5355&v=2">
                                        <img width="36" height="36" src="http://117.169.48.109:8089/images/XGFW.png"></img>
                                        <p>实习生退学审批表单</p>
                                    </a>
                                    <a href="XGFW_index.html?PDLXID=9&PDLXMC=%u5B9E%u4E60%u751F%u590D%u5B66%u5BA1%u6279%u8868%u5355&v=2">
                                        <img width="36" height="36" src="http://117.169.48.109:8089/images/XGFW.png"></img>
                                        <p>实习生复学审批表单</p>
                                    </a>
                                    <a href="XGFW_index.html?PDLXID=10&PDLXMC=%u5B9E%u4E60%u751F%u4FDD%u7559%u5B66%u7C4D%u5BA1%u6279%u8868%u5355&v=2">
                                        <img width="36" height="36" src="http://117.169.48.109:8089/images/XGFW.png"></img>
                                        <p>实习生保留学籍审批表单</p>
                                    </a>
                                    <a href="XGFW_index.html?PDLXID=11&PDLXMC=%u521B%u4E1A%u5B66%u751F%u4F11%u5B66%u5BA1%u6279%u8868&v=2">
                                        <img width="36" height="36" src="http://117.169.48.109:8089/images/XGFW.png"></img>
                                        <p>创业学生休学审批表</p>
                                    </a>
                                    <a href="XGFW_index.html?PDLXID=12&PDLXMC=%u521B%u4E1A%u5B66%u751F%u590D%u5B66%u5BA1%u6279%u8868&v=2">
                                        <img width="36" height="36" src="http://117.169.48.109:8089/images/XGFW.png"></img>
                                        <p>创业学生复学审批表</p>
                                    </a>
                                </div>
                                <div>
                                    <a href="XGFW_index.html?PDLXID=13&PDLXMC=%u6821%u7EA7%u5956%u5B66%u91D1&v=2">
                                        <img width="36" height="36" src="http://117.169.48.109:8089/images/XGFW.png"></img>
                                        <p>校级奖学金</p>
                                    </a>
                                    <a href="XGFW_index.html?PDLXID=15&PDLXMC=%u8D2B%u56F0%u751F%u8BA4%u5B9A&v=2">
                                        <img width="36" height="36" src="http://117.169.48.109:8089/images/XGFW.png"></img>
                                        <p>贫困生认定</p>
                                    </a>
                                    <a href="XGFW_index.html?PDLXID=16&PDLXMC=%u56FD%u5BB6%u5956%u5B66%u91D1&v=2">
                                        <img width="36" height="36" src="http://117.169.48.109:8089/images/XGFW.png"></img>
                                        <p>国家奖学金</p>
                                    </a>
                                    <a href="XGFW_index.html?PDLXID=17&PDLXMC=%u56FD%u5BB6%u52B1%u5FD7%u5956%u5B66%u91D1&v=2">
                                        <img width="36" height="36" src="http://117.169.48.109:8089/images/XGFW.png"></img>
                                        <p>国家励志奖学金</p>
                                    </a>
                                    <a href="XGFW_index.html?PDLXID=18&PDLXMC=%u56FD%u5BB6%u52A9%u5B66%u91D1&v=2">
                                        <img width="36" height="36" src="http://117.169.48.109:8089/images/XGFW.png"></img>
                                        <p>国家助学金</p>
                                    </a>
                                    <a href="XGFW_index.html?PDLXID=20&PDLXMC=%u5B66%u751F%u7EFC%u5408%u7D20%u8D28%u6392%u540D%u8BC1%u660E&v=2">
                                        <img width="36" height="36" src="http://117.169.48.109:8089/images/XGFW.png"></img>
                                        <p>学生综合素质排名证明</p>
                                    </a>
                                </div>
                                <div>
                                    <a href="XGFW_index.html?PDLXID=21&PDLXMC=%u5B66%u751F%u8BC4%u4F18%u8BC4%u5148&v=2">
                                        <img width="36" height="36" src="http://117.169.48.109:8089/images/XGFW.png"></img>
                                        <p>学生评优评先</p>
                                    </a>
                                    <a href="/1/XGFW_index.html?PDLXID=22&PDLXMC=%u8C03%u5BDD%u7533%u8BF7%u8868&v=2">
                                        <img width="36" height="36" src="http://117.169.48.109:8089/images/XGFW.png"></img>
                                        <p>调寝申请表</p>
                                    </a>
                                </div>
                            </div>
                            <div class="layui-carousel-ind">
                                <ul>
                                    <li class="layui-this"></li>
                                    <li class=""></li>
                                    <li></li>
                                    <li></li>
                                </ul>
                            </div>
                            <button class="layui-icon layui-carousel-arrow" lay-type="sub"></button>
                            <button class="layui-icon layui-carousel-arrow" lay-type="add"></button>
                        </div>
                    </div>
                </div>
                <div class="nav1 clearfix" id="divMenu0">
                    <p class="nav-title">移动应用</p>
                    <a href="../../HTML/myinfo.html" style="">
                        <img width="36" height="36" src=""></img>
                        <p>我的学籍卡片</p>
                    </a>
                    <a href="../../HTML/214.html" style="">
                        <img width="36" height="36" src=""></img>
                        <p>奖助学金申请</p>
                    </a>
                    <a href="../../HTML/190.html?v=1.0.2" style="">
                        <img width="36" height="36" src=""></img>
                        <p>贫困生申请</p>
                    </a>
                    <a href="../../HTML/185.html" style="">
                        <img width="36" height="36" src=""></img>
                        <p>公寓服务</p>
                    </a>
                    <a href="../../HTML/200.html" style="">
                        <img width="36" height="36" src=""></img>
                        <p>理赔申请</p>
                    </a>
                    <a href="../../HTML/202.html" style="">
                        <img width="36" height="36" src=""></img>
                        <p>勤工岗位申请</p>
                    </a>
                    <a href="../../HTML/237.html" style="">
                        <img width="36" height="36" src=""></img>
                        <p>学生处分确认</p>
                    </a>
                    <a href="../../HTML/240.html?v=1" style="">
                        <img width="36" height="36" src=""></img>
                        <p>节假日离校登记</p>
                    </a>
                    <a href="../../HTML/YQFKDJ.html" style="">
                        <img width="36" height="36" src=""></img>
                        <p>疫情防控登记</p>
                    </a>
                    <a href="../../HTML/CWWJDJZY.html" style="">
                        <img width="36" height="36" src=""></img>
                        <p>晨午晚检</p>
                    </a>
                    <a href="../../HTML/BYZLQFS.html" style="">
                        <img width="36" height="36" src=""></img>
                        <p>毕业证领取方式</p>
                    </a>
                    <a href="../../HTML/XLZXZY.html" style="">
                        <img width="36" height="36" src=""></img>
                        <p>心理咨询申请</p>
                    </a>
                    <a href="../../HTML/XXTZ.html" style="">
                        <img width="36" height="36" src=""></img>
                        <p>消息接收</p>
                    </a>
                    <a href="../../HTML/XSYJX.html" style="">
                        <img width="36" height="36" src=""></img>
                        <p>意见箱</p>
                    </a>
                    <a href="../../HTML/YanQiList.html" style="">
                        <img width="36" height="36" src=""></img>
                        <p>延期毕业申请</p>
                    </a>
                    <a href="../../HTML/ZHCP.html" style="">
                        <img width="36" height="36" src=""></img>
                        <p>学生综合测评</p>
                    </a>
                    <a href="../../HTML/XGMM.html" style="">
                        <img width="36" height="36" src=""></img>
                        <p>密码修改</p>
                    </a>
                    <a href="../../xggl/XSWJTX.html" style="">
                        <img width="36" height="36" src=""></img>
                        <p>学生民主问卷</p>
                    </a>
                </div>
            </div>
        </section>
        <!--<section class="bottom-nav1" style="display:none">
      <a href="appshop.html" style="width:40%;"><img src="image/appshop.png"><p>应用商城</p></a>
       <a href="###" class="nav-center active" style="border-top:1px solid #ddd;"><img src="image/yingyong-active.png"><p style="margin-top:4px;">应用中心</p></a>
       <a href="###" class="fr" style="width:40%;"><img src="image/sjzx.png"><p>数据中心</p></a>
    </section>-->
        <section class="dxmb-warp">
            <ul class="dxmb-list">
                <li id="ZYSYGH"> </li>
                <li id="DEKTCJ"> </li>
                <li id="CJCYCJ"> </li>
            </ul>
        </section>
        <section class="rwzx-warp">
            <div class="hdlb-list" id="divHDLB"> </div>
        </section>
        <script src="js/newjs/jquery-3.1.1.min.js"></script>
        <script src="layui/layui.all.js"></script>
        <!--<script src="layui/layui.js"></script>-->
        <script src="js/workstation.js?v=1.1.5"></script>
        <script>
            
        $(function () {
            //获取当前用户学工值班信息
            //$.ajax({
            //    url: '/weixinYX/ashx/Phone_WXYX.ashx?type=Savezyzbjl',
            //    type: 'post',
            //    data: {},
            //    dataType: 'json',
            //    success: function (data) {
            //        var strhtml = "";
            //        if (data.rows.length > 0) {
            //            for (var i = 0; i < data.rows.length; i++) {
            //                strhtml += '<div class="msg fl" style="margin-bottom:5px;">';
            //                strhtml += '<p>' + data.rows[i].ZWMC + data.rows[i].XM + '</p>';
            //                strhtml += '<p>' + data.rows[i].bcmc + '(' + data.rows[i].RQ + ')' + '</p>';
            //                strhtml += '</div><div class="btn-lj fl">';
            //                strhtml += '<a href="Jszb.html?ZWMC=' + data.rows[i].ZWDM + '" class="zbjl"><img src="images/WeiXin/zbjl.png" />值班记录</a>';
            //                strhtml += '<a href="zbdk.html?ZWMC=' + data.rows[i].ZWDM + '" class="zbdk"><img src="images/WeiXin/zbdk.png" />值班打卡</a></div>';
            //            }
            //        }
            //        $("#jszbdk").html(strhtml);
            //    }
            //})

            //表格tab栏切换
            $(".tab-warp>.tab-title>span").each(function (i) {
                $(this).click(function () {
                    $(".tab-warp>.tab-title>span").removeClass("on");
                    $(this).addClass("on");
                    if (i == 0) {
                        $(".table2").hide();
                        $(".table1").show();
                    }
                    if (i == 1) {
                        $(".table1").hide();
                        $(".table2").show();
                    }
                })
            })
            $.ajax({
                url: '/weixinYX/ashx/Phone_WXYX.ashx?type=LoadDLR',
                type: 'post',
                data: {},
                dataType: 'text',
                success: function (data) {
                    if (data == "") {
                        //layer.msg('登陆超时，请重新登录！', { icon: 6 });
                        setTimeout(function () {
                            window.location.href = '/xgLogin.html';
                        }, 2000);
                    } else {
                        $("#loginname").text(data + ",您好");
                    }
                }
            })
            //学工 服务
            $.ajax({
                url: '/weixinYX/ashx/Phone_WXYX.ashx?type=GetMenuRight_Top',
                type: 'post',
                data: {},
                dataType: 'json',
                success: function (dataTop) {
                    //获取菜单
                    $.ajax({
                        url: '/weixinYX/ashx/Phone_WXYX.ashx?type=GetMenuRight',
                        type: 'post',
                        data: {},
                        dataType: 'json',
                        success: function (data) {
                            var ParentName = [];
                            var strHtml = '<div class="nav1 clearfix" id="divMenuXG"><p class="nav-title">事务中心</p><div class="carousel-warp"></div></div>';
                            var countNum = 0;
                            for (var i = 0; i < data.total; i++) {
                                if ($.inArray(data.rows[i].ParentName, ParentName) < 0) {
                                    ParentName.push(data.rows[i].ParentName);
                                    strHtml += '<div class="nav1 clearfix" id="divMenu' + countNum + '"><p class="nav-title">' + data.rows[i].ParentName + '</p></div>';
                                    countNum++;
                                }
                            }
                            $("#workstation").html(strHtml);

                            //事务中心
                            var html1 = '<div class="layui-carousel" id="carouselMain">';
                            html1 += '<div carousel-item>';
                            html1 += '<div></div>';
                            //html1 += '<div>条目2</div> ';
                            html1 += '</div></div>';

                            $("#divMenuXG").children(".carousel-warp").append(html1);

                            var carousel = layui.carousel;
                            //建造实例
                            var ins = carousel.render({
                                elem: '#carouselMain',
                                width: '100%', //设置容器宽度
                                height: '160px',
                                arrow: 'none', //始终显示箭头
                                interval: 3000
                                //,anim: 'updown' //切换动画方式
                            });
                            $("#carouselMain").on("touchstart", function (e) {
                                var startX = e.originalEvent.targetTouches[0].pageX;//开始坐标X
                                $(this).on('touchmove', function (e) {
                                    arguments[0].preventDefault();//阻止手机浏览器默认事件
                                });
                                $(this).on('touchend', function (e) {
                                    var endX = e.originalEvent.changedTouches[0].pageX;//结束坐标X
                                    e.stopPropagation();//停止DOM事件逐层往上传播
                                    if (endX - startX > 30) {
                                        ins.slide("sub");
                                    }
                                    else if (startX - endX > 30) {
                                        ins.slide("add");
                                    }
                                    $(this).off('touchmove touchend');
                                });
                            });

                            if (dataTop.total > 0) {
                                var indexP = dataTop.total / 6.0;
                                if (1 < indexP && indexP <= 2) {
                                    $("#divMenuXG").children(".carousel-warp").children(".layui-carousel").children("div").append("<div></div>");
                                } else if (2 < indexP && indexP <= 3) {
                                    $("#divMenuXG").children(".carousel-warp").children(".layui-carousel").children("div").append("<div></div><div></div>");
                                } else if (3 < indexP && indexP <= 4) {
                                    $("#divMenuXG").children(".carousel-warp").children(".layui-carousel").children("div").append("<div></div><div></div><div></div>");
                                }
                                for (var i = 0; i < dataTop.total; i++) {
                                    var htmlA = '<a href="' + dataTop.rows[i].MenuURL + '&PDLXMC=' + escape(dataTop.rows[i].MenuName) + '&v=2" ><img  width="36" height="36" src="http://117.169.48.109:8089/images/XGFW.png"><p>' + dataTop.rows[i].MenuName + '</p></a>';
                                    if (i <= 5) {
                                        $("#divMenuXG").children(".carousel-warp").children(".layui-carousel").children("div").children("div").eq(0).append(htmlA);
                                    } else if (5 < i && i <= 11) {
                                        $("#divMenuXG").children(".carousel-warp").children(".layui-carousel").children("div").children("div").eq(1).append(htmlA);
                                    } else if (11 < i && i  <= 17) {
                                        $("#divMenuXG").children(".carousel-warp").children(".layui-carousel").children("div").children("div").eq(2).append(htmlA);
                                    } else if (17 < i && i  <= 23) {
                                        $("#divMenuXG").children(".carousel-warp").children(".layui-carousel").children("div").children("div").eq(3).append(htmlA);
                                    }
                                    //$("#divMenuXG").append('<a href="' + dataTop.rows[i].MenuURL + '" ><img  width="36" height="36" src="http://117.169.48.109:8089/images/XGFW.png"><p>' + dataTop.rows[i].MenuName + '</p></a>');
                                }
                            }

                            for (var i = 0; i < ParentName.length; i++) {
                                for (var j = 0; j < data.total; j++) {
                                    if (data.rows[j].ParentName == ParentName[i]) {
                                        $("#divMenu" + i).append('<a href="' + data.rows[j].MenuURL + '" style=""><img  width="36" height="36" src = "data:image/png;base64,' + data.rows[j].Zzyz + '"><p>' + data.rows[j].MenuName + '</p></a>');
                                    }
                                }
                            }



                            //重置轮播
                            ins.reload({
                                elem: '#carouselMain',
                                width: '100%', //设置容器宽度
                                height: '160px',
                                arrow: 'none', //始终显示箭头
                                interval: 3000
                            });

                            //var QTMenu = "";
                            //for (var i = 0; i < data.total; i++) {

                            //    if (data.rows[i].MenuLB == "周期") {
                            //        if (ZQMenu == "") {
                            //            var ZQMenu = '<div class="nav1 clearfix"><p class="nav-title">周期</p>"';
                            //        } else {
                            //            ZQMenu += '<a href="' + data.rows[i].MenuURL + '" style=""><img  width="36" height="36" src = "data:image/png;base64,' + data.rows[i].Zzyz + '"><p>' + data.rows[i].MenuName + '</p></a>';
                            //        }
                            //    } else if (data.rows[i].MenuLB == "商城应用") {
                            //        if (ZQMenu == "") {
                            //            var ZQMenu = '<div class="nav1 clearfix"><p class="nav-title">商城应用</p>"';
                            //        } else {
                            //            ZQMenu += '<a href="' + data.rows[i].MenuURL + '" style=""><img  width="36" height="36" src = "data:image/png;base64,' + data.rows[i].Zzyz + '"><p>' + data.rows[i].MenuName + '</p></a>';
                            //        }
                            //    }
                            //    else {

                            //    }
                            //}


                            ////获取菜单类别
                            //var Menu_list = [];
                            //$.each(data.rows, function (i, v) {
                            //    if (i == 0) {
                            //        Menu_list.push(v.MenuLB);
                            //    } else {
                            //        if ($.inArray(v.MenuLB, Menu_list) < 0) {
                            //            Menu_list.push(v.MenuLB);
                            //        }
                            //    }
                            //})
                            //if (Menu_list.length > 0) {
                            //    var html_menu = "";
                            //    var htmlShop = "";
                            //    $.post("/weixinYX/ashx/Phone_WXYX.ashx", { type: "isStudent" }, function (data) {
                            //        if (data == "true") {
                            //            if ($.inArray('商城应用', Menu_list) < 0) {
                            //                htmlShop += "<div class='nav1 clearfix'><p class='nav-title'>" + Menu_list[i] + "</p>"
                            //                    + "<h2 style='color: red; text - align: center;'>您还没有添加商城应用，请添加！</h2><div>";
                            //            }
                            //        }
                            //    })
                            //    for (var i = 0; i < Menu_list.length; i++) {
                            //        var menu_List = data.rows.filter(function (e) { return e.MenuLB == Menu_list[i]; });//根据菜单类别获取具体菜单
                            //        if (Menu_list[i] == "商城应用") {
                            //            htmlShop += '<div class="nav1 clearfix"><p class="nav-title">' + Menu_list[i] + '</p>';
                            //            $.each(menu_List, function (j, v) {
                            //                if (Menu_list[i] == "审批中心" || v.MenuName == "值班打卡" || v.MenuName == "值班记录") {
                            //                    $.ajax({
                            //                        async: false,
                            //                        url: '/weixinYX/ashx/Phone_WXYX.ashx?type=GetMenuCount',
                            //                        type: 'post',
                            //                        data: {
                            //                            MenuName: v.MenuName
                            //                        },
                            //                        dataType: 'json',
                            //                        success: function (data) {
                            //                            if (data.rows.length > 0) {
                            //                                htmlShop += '<a href="' + v.MenuURL + '" style=""><img  width="36" height="36" src = "data:image/png;base64,' + v.Zzyz + '"><span class="layui-badge">' + data.rows.length + '</span><p>' + v.MenuName + '</p></a>';
                            //                            }
                            //                            else {
                            //                                htmlShop += '<a href="' + v.MenuURL + '" style=""><img  width="36" height="36" src = "data:image/png;base64,' + v.Zzyz + '"><p>' + v.MenuName + '</p></a>';
                            //                            }
                            //                        }
                            //                    })
                            //                }
                            //                else {
                            //                    htmlShop += '<a href="' + v.MenuURL + '" style=""><img  width="36" height="36" src = "data:image/png;base64,' + v.Zzyz + '"> <p>' + v.MenuName + '</p></a>';
                            //                }
                            //            })
                            //            htmlShop += "</div>";
                            //        }
                            //        else {
                            //            html_menu += '<div class="nav1 clearfix"><p class="nav-title"> ' + Menu_list[i] + '</p>';
                            //            $.each(menu_List, function (j, v) {
                            //                if (Menu_list[i] == "审批中心" || v.MenuName == "值班打卡" || v.MenuName == "值班记录") {
                            //                    $.ajax({
                            //                        async: false,
                            //                        url: '/weixinYX/ashx/Phone_WXYX.ashx?type=GetMenuCount',
                            //                        type: 'post',
                            //                        data: {
                            //                            MenuName: v.MenuName
                            //                        },
                            //                        dataType: 'json',
                            //                        success: function (data) {
                            //                            if (data.rows.length > 0) {
                            //                                html_menu += '<a href="' + v.MenuURL + '" style=""><img  width="36" height="36" src = "data:image/png;base64,' + v.Zzyz + '"><span class="layui-badge">' + data.rows.length + '</span><p>' + v.MenuName + '</p></a>';
                            //                            }
                            //                            else {
                            //                                html_menu += '<a href="' + v.MenuURL + '" style=""><img  width="36" height="36" src = "data:image/png;base64,' + v.Zzyz + '"><p>' + v.MenuName + '</p></a>';
                            //                            }
                            //                        }
                            //                    })
                            //                }
                            //                else {
                            //                    html_menu += '<a href="' + v.MenuURL + '" style=""><img  width="36" height="36" src = "data:image/png;base64,' + v.Zzyz + '"> <p>' + v.MenuName + '</p></a>';
                            //                }
                            //            })
                            //            html_menu += "</div>";
                            //        }
                            //    }
                            //    html_menu += htmlShop;
                            //    $("#workstation").html(html_menu);
                            //} else {
                            //    $("#workstation").html("您暂未配置菜单权限！");
                            //}
                        }
                    });
                }
            })
            // isStudent(); //是学生 则加载 下面的商城列表
            ClickXGDT('1');
            LoadCount();
        })
        function isStudent() {
            $.post("/weixinYX/ashx/Phone_WXYX.ashx", { type: "isStudent" }, function (data) {
                if (data == "true") {
                    $(".bottom-nav1").show();
                    var strHtml = "<a href='appshop.html' style='width:40%;'><img src='image/appshop.png'><p>应用商城</p></a>"
                        + "<a href='workstation.html' class='nav-center active' style='border-top:1px solid #ddd; '><img src='image/yingyong-active.png'><p style='margin-top:4px;'>应用中心</p></a>"
                        + "<a href='###' class='fr' style='width:40%;'><img src='image/sjzx.png'><p>数据中心</p></a>";
                    $(".bottom-nav1").html(strHtml);
                }
            })
        }



        function ClickXGDT(type) {
            $.post("/weixinYX/ashx/Phone_WXYX.ashx?type=LoadXGDT&XGDTType=" + type,
                function (data) {
                    var result = JSON.parse(data);
                    $(".trLoad").remove();
                    var htmlStr = "";
                    if (result.total > 0) {
                        for (var i = 0; i < result.total; i++) {
                            //htmlStr += "<tr style=\"height:30px;\"><td>" + (i + 1) + "</td><td><a href=\"" + result.rows[i].url + "\" target=\"index_zt\" onclick=\"ChangeYDZT('" + result.rows[i].id + "');\" style=\"color:red;\">" + result.rows[i].title + "</a></td><td>" + result.rows[i].lwlx + "</td><td>" + result.rows[i].fbsj.substring(0, 10) + "</td><td>" + result.rows[i].ydzt + "</td></tr>"
                            htmlStr += "<tr class=\"trLoad\"><td style=\"width: 35px;\">" + (i + 1) + "</td><td  style=\"width: 100px;\">" + result.rows[i].fbsj.substring(0, 10) + "</td><td style=\"width: 120px;\" ><a href=\"" + result.rows[i].ydUrl + "\" onclick=\"ChangeYDZT('" + result.rows[i].id + "');\"  style=\"color:red;\">" + result.rows[i].title + "</a></td><td style=\"width: 150px;\">" + result.rows[i].dwmc + "</td></tr>"
                        }
                    }
                    $("#divXGDT").append(htmlStr);
                })
            if (type == "1") {
                $("#xgdcA").css("font-weight", "bold");
                $("#cwdtA").css("font-weight", "normal");
                $("#cxcydtA").css("font-weight", "normal");
            }
            if (type == "2") {
                $("#xgdcA").css("font-weight", "normal");
                $("#cwdtA").css("font-weight", "bold");
                $("#cxcydtA").css("font-weight", "normal");
            } if (type == "3") {
                $("#xgdcA").css("font-weight", "normal");
                $("#cwdtA").css("font-weight", "normal");
                $("#cxcydtA").css("font-weight", "bold");
            }
        }
        function LoadCount() {
            $.post("/weixinYX/ashx/Phone_WXYX.ashx?type=LoadCount", function (data) {
                var counts = data.split(',');
                $("#lableXGDT").html(counts[0]);
                $("#lableTWDT").html(counts[1]);
                $("#lableCXCYDT").html(counts[2]);
            })
        }
        function ChangeYDZT(id) {
            $.post("/weixinYX/ashx/Phone_WXYX.ashx?type=ChangeYDZT&id=" + id, function (data) { });

        }

    
        </script>
    </body>
</html>
